package com.gezi.admin.utils.wx.weapp.model;

import com.alibaba.fastjson2.JSON;
import lombok.Data;

@Data
public class Code2SessionModel {

    /**
     * session_key : 5p+84gsa2hTITF6nBqFOzg==
     * openid : o_USv4jxEJjXTmGaVKALUwN0xatA
     */
    private String session_key;
    private String openid;
    private String unionid;
    private int errcode;
    private String errmsg;

    public static Code2SessionModel objectFromData(String str) {

        return JSON.parseObject(str, Code2SessionModel.class);
    }
}
